/**
 *	@file		signal.cpp 
 *	@version	1.0a
 *	@author		rpvaras
 *
 *	This file is part of omcpp.
 *	
 *	
 *
 *	omcpp is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	omcpp is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with omcpp. If not, see <http://www.gnu.org/licenses/>.
 */

#include <omcpp/config.h>
#include <omcpp/signal.h>
#ifdef OMCPP_PLATFORM_WIN32
#include <windows.h>
#endif

omcpp::_details::signal_base::signal_base()
{
	_next_id = 0;
}

#ifdef OMCPP_PLATFORM_WIN32
unsigned long omcpp::_details::signal_base::new_id()
{
	return InterlockedIncrement((LONG*)&_next_id);
}
#endif